import os
import os.path
def makefile(num):
    for i in range(1,num+1):
        filename=''
        if num<10:
            filename+=path+'/'+str(i)
        elif num<=100:
            filename+=path+'/'+str(i)
        else:
             filename+=path+'/'+str(i)
        os.mkdir(filename)

if __name__=='__main__':
    path='./newpath'
    if not os.path.exists(path):
        os.mkdir(path)
    num=eval(input("请输入你要创建文件的个数："))
    makefile(num)